#include "stdafx.h"
#include "SOCK_Stream.h"

namespace Network {
	int SOCK_Stream::send(const char* buffer, size_t buffer_size, int flags) {
		//fprintf(stdout, "Sending");
		return ::send(handle_,(char *)buffer, buffer_size, flags);
	}
	
	int SOCK_Stream::receive(void* buffer, size_t buffer_size, int flags) {
		//fprintf(stdout, "Receiving\n");
		return ::recv(handle_,(char *)buffer, buffer_size, flags);
	}
	void SOCK_Stream::close() {
		closesocket(handle_);
	}
}



